/*
 * Author :zhaoningbo
 * Date   :2011-8-26 12:52:50
 * Email  :zhaoningbo@hotmail.com
 * Blog   :http://zhaoningbo.iteye.com/
 */
package com.number.app.watermark;

import java.io.IOException;
import java.io.Serializable;

public class MainDefault implements Serializable {

    private static final long serialVersionUID = -143421935499820670L;

    public static void main(String[] args) {
        
        String srcImagePath = "D:\\srcImage.jpg";
        String destImagPath = "D:\\destImage.jpg";
        String content = "[url=http://zhaoningbo.iteye.com/]My Blog[url]";
        
        String stampImagePath = "D:\\bigfoot.png";
        
        TextWaterMarker textWaterMarker = new TextWaterMarker(srcImagePath, destImagPath);
        textWaterMarker.setContent(content);
        textWaterMarker.setAlpha(0.5);
        textWaterMarker.setAngle(30);
        
        //textWaterMarker.setStampImagePath(stampImagePath);
        
        try {
            textWaterMarker.waterMark();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
